package cn.stylefeng.guns.modular.promotion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:19
 * @version 1.0
 */
/**
    * 优惠券领取记录表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "promotion_coupon_achieve")
public class PromotionCouponAchieveEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 优惠券ID
     */
    @TableField(value = "coupon_id")
    private Long couponId;

    /**
     * 用户账号ID
     */
    @TableField(value = "user_account_id")
    private Long userAccountId;

    /**
     * 是否使用过这个优惠券，1：使用了，0：未使用
     */
    @TableField(value = "is_used")
    private Integer isUsed;

    /**
     * 使用优惠券的时间
     */
    @TableField(value = "used_time")
    private Date usedTime;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_COUPON_ID = "coupon_id";

    public static final String COL_USER_ACCOUNT_ID = "user_account_id";

    public static final String COL_IS_USED = "is_used";

    public static final String COL_USED_TIME = "used_time";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}